home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGMISC
/
FORTRAN2.LZH
/
SCROLL.FOR
< prev
next >
Wrap
Text File
|
1988-02-08
|
2KB
|
82 lines
SUBROUTINE SCROLL ( NWRITE, ITOP, IBOT )
C*
C* *******************************
C* *******************************
C* ** **
C* ** SCROLL **
C* ** **
C* *******************************
C* *******************************
C*
C* SUBPROGRAM :
C* SCROLL REGION
C*
C* AUTHOR :
C* ART RAGOSTA
C* MS 207-5
C* AMES RESEARCH CENTER
C* MOFFETT FIELD, CALIF 94035
C* (415) 694-5578
C*
C* PURPOSE :
C* ON A VT100 TERMINAL, DEFINE A PORTION OF THE SCREEN TO BE
C* USED FOR A SCROLL REGION AND PLACE THE CURSOR IN THE FIRST
C* LINE OF THAT REGION. NOTE: USE SRESET BEFORE EXITING YOUR
C* PROGRAM TO RESTORE THE NORMAL SCROLL REGION.
C* NOTE: GOTOXY CAN STILL GET THE CURSOR OUTSIDE OF THE SCROLL
C* REGION.
C*
C* INPUT ARGUMENTS :
C* NWRITE - THE LOGICAL UNIT NUMBER FOR THE SCREEN
C* ITOP - THE FIRST ROW TO BE IN THE SCROLL REGION
C* IBOT - THE LAST ROW TO BE IN THE SCROLL REGION
C*
C* OUTPUT ARGUMENTS :
C* NONE
C*
C* INTERNAL WORK AREAS :
C* NONE
C*
C* COMMON BLOCKS :
C* NONE
C*
C* FILE REFERENCES :
C* NWRITE
C*
C* SUBPROGRAM REFERENCES :
C* NONE
C*
C* ERROR PROCESSING :
C* NONE
C*
C* TRANSPORTABILITY LIMITATIONS :
C* NON-STANDARD FORMAT STATEMENT
C*
C* ASSUMPTIONS AND RESTRICTIONS :
C* ONLY WORKS ON VT100S AND COMPATIBLES
C*
C* LANGUAGE AND COMPILER :
C* ANSI FORTRAN 77
C*
C* VERSION AND DATE :
C* VERSION I.0 22-FEB-85
C*
C* CHANGE HISTORY :
C* 22-FEB-85 INITIAL VERSION
C*
C***********************************************************************
C*
IF ((ITOP .LT. 1) .OR. (ITOP .GT. 23)) ITOP = 1
IF ((IBOT .LT. 2) .OR. (IBOT .GT. 24)) IBOT = 24
IT = 1
IF (ITOP .GT. 9) IT=2
IB = 1
IF (IBOT .GT. 9) IB=2
WRITE (NWRITE,900) CHAR(27),ITOP,IBOT
RETURN
900 FORMAT(' ',A1,'[',I<IT>,';',I<IB>,'r',$)
END
C
C---END SCROLL
C